﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true" CodeBehind="RolesSet.aspx.cs" Inherits="Besture.UI.Admin.User.RolesSet" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="mainbox">
        <div>
            <div>
                <table width="98%" cellspacing="0" cellpadding="0" class="table_form">
                    <tr>
                        <th>
                            角色名称：
                        </th>
                        <td>
                            <img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtRolesName" runat="server" MaxLength="30" class="input-text required"
                                Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            备注：
                        </th>
                        <td>
                            <img src="/admin/images/dispensable.png" align="absMiddle" /><asp:TextBox ID="txtRemark" runat="server" MaxLength="200" class="input-text" TextMode="MultiLine"
                                Height="78px" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            用户权限：
                        </th>
                        <td>
                            <img src="/admin/images/dispensable.png" align="absMiddle" /><input id="Button1" type="button" class="button" onclick="ShowNewsClassTree(); return false;"
                                value="选择权限" />
                                
                                <asp:TextBox runat="server" ID="txtUserPermissions" ClientIDMode="Static" class="input-text userPermissionsClass" ></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="buttonDiv">
                <asp:Button runat="server" ID="btnSubmit" CssClass="button" Text="保存" OnClick="btnSubmit_Click" />
                <input type="button" class="button" value="取消" onclick="location.href='RolesList.aspx'" />
            </div>
        </div>
    </div>
    <script type="text/javascript" src="/Admin/PlugIn/lhgdialog/lhgcore.lhgdialog.min.js"></script>
    <script language="javascript">
        function ShowNewsClassTree() {
            var userPermissions = $("#txtUserPermissions").val();
            $.dialog({
                title:'选择权限',
                lock: true,
                content: 'url:/admin/Sys/RolesTree.aspx?userPermissions=' + userPermissions,
                max: false,
                min: false,
                resize: true,
                width: '400px',
                height: '400px'
            });
        }
    </script>
</asp:Content>
